#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

#define SWAP(num)  (int)(((0xAAAAAAAA) & (num<<1)) + ((0x55555555) & (num>>1)))

int main() {
	int num = 4;
	printf("%d\n",SWAP(num));
	return 0;
}